import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";
// 警告
export function warnPlayer(params) {
  return request({
    url: '/squad/rcon/gamer/warn',
    method: 'post',
    data: params,
  });
};

// 踢出玩家
export function kickPlayer(params){
  return request({
    url: '/squad/rcon/gamer/kick',
    method: 'post',
    data: params,
  });
};

// 封禁
export function banPlayer  (params){
  return request({
    url: '/squad/rcon/gamer/ban',
    method: 'post',
    data: params,
  });
};

// 解散小队
export function disbandSquad  (params) {
  return request({
    url: '/squad/rcon/disband/squad',
    method: 'post',
    data: params,
  });
};

//跳边
export function changePlayerSide  (params) {
  return request({
    url: '/squad/rcon/change/side',
    method: 'post',
    data: params,
  });
};

//跳边
export function getNowMap  (params) {
  return request({
    url: '/squad/rcon/now/map',
    method: 'post',
    data: params,
  });
};

//跳边
export function getNexMap  (params) {
  return request({
    url: '/squad/rcon/next/map',
    method: 'post',
    data: params,
  });
};

export function updateMap  (params) {
  return request({
    url: '/squad/rcon/update/map',
    method: 'post',
    data: params,
  });
};

//跳边
export function presetsMap  (params) {
  return request({
    url: '/squad/rcon/presets/map',
    method: 'post',
    data: params,
  });
};
//发送广播
export function sendBroadcast  (params) {
  return request({
    url: '/squad/rcon/send/broadcast',
    method: 'post',
    data: params,
  });
};
